package com.mbatis.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Person {
    private String name;  // 姓名
    private int salary; // 薪资
    private int age; // 年龄
    private String sex; //性别
    private String area;  // 地区

    // 构造方法
    public Person(String name, int salary,String sex,String area) {
        this.name = name;
        this.salary = salary;
        this.age = age;
        this.sex = sex;
        this.area = area;
    }


//    public static void main(String[] args) {
//        List<Person> personList = new ArrayList<>();
//        personList.add(new Person("Tom", 8900, "male", "New York"));
//        personList.add(new Person("Jack", 7000, "male", "Washington"));
//        personList.add(new Person("Lily", 7800, "female", "Washington"));
//        personList.add(new Person("Anni", 8200, "female", "New York"));
//        personList.add(new Person("Owen", 9500, "male", "New York"));
//        personList.add(new Person("Alisa", 7900, "female", "New York"));
//    }


}
